﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    public class Nvwa
    {
        public static Person GetPerson(String type)
        {
            Person p= null;
            if (type == "M")
            {
                p = new Man();
            }
            else if (type == "W")
            {
                p = new Woman();
            }

            return p;
        }
    }
}
